/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 导入方式
 *
 * @author hxloongs
 * @date 2025-4-28
 */
@AllArgsConstructor
@Getter
public enum IsfdImportDataOperationEnum {
    CREATED("created"),
    UPDATED("updated"),
    DELETED("deleted");
    private final String value;

    public static boolean isValid(String value) {
        for (IsfdImportDataOperationEnum method : values()) {
            if (method.name().equalsIgnoreCase(value)) {
                return true;
            }
        }
        return false;
    }
}
